<#assign ctx=base.contextPath>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>点睛网·点群后台管理</title>
<link href="${ctx}/static/css/swiper.min.css" rel="stylesheet">
<link rel="stylesheet" href="${ctx}/static/layui/css/layui.css" />
<link rel="stylesheet" href="${ctx}/static/admin_files/awesome.css" />
<link rel="stylesheet" href="${ctx}/static/layui/css/style.css" />
<script type="text/javascript"
	src="${ctx}/static/js/plugins/jQuery/jquery-2.3.4.min.js"></script>
<script type="text/javascript"
	src="${ctx}/static/js/jquery/jquery.form.js"></script>
<script type="text/javascript" src="${ctx}/static/layui/layui.all.js"></script>
<script language="JavaScript"> 
if (window != top) 
top.location.href = location.href; 
</script>
</head>
<body>
	<div class="layui-layout layui-layout-admin">
		<div class="container con-bj">
			<canvas id="canv"></canvas>
			<div id="bg-overlay"></div>
			<div class="cls-content">
				<div class="cls-content-sm panel">
					<div class="swiper-container">
						<div class="swiper-wrapper">
							<div class="swiper-slide swiper-no-swiping">
								<div class="panel-body">
									<div class="mar-ver">
										<img src="${ctx}/static/images/webicon/logo100X100.png" />
										<h3>点睛网·新点群管理登录</h3>
									</div>
									<form class="layui-form" action="${ctx}/login" id="submitForm"
										method="post">
										<div class="layui-form-item ipt-text">
											<div class="dp-block">
												<i class="fa fa-user"></i> <input type="text"
													name="username" placeholder="请输入账号" autocomplete="off"
													class="layui-input" lay-verify="required">
											</div>
										</div>
										<div class="layui-form-item ipt-text">
											<div class="dp-block">
												<i class="fa fa-lock"></i>
												 <input type="password"  name="password" placeholder="请输入密码" autocomplete="off"
													class="layui-input" lay-verify="required">
											</div>
										</div>
										<div class="layui-form-item">
											<button type="button"
												class="layui-btn layui-btn-normal dp-block" lay-submit
												lay-filter="loginForm">登 录</button>
										</div>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
	layui.use(['form'], function(){
		  var form = layui.form;
		  layer = parent.layer === undefined ? layui.layer : parent.layer,
		  $ = layui.jquery;
		  //自定义验证规则
		  form.verify({
		    title: function(value){
		      if(value.length < 5){
		        return '标题至少得5个字符啊';
		      }
		    }
		    ,pass: [/(.+){1,12}$/, '密码必须1到12位']
		    ,content: function(value){
		      layedit.sync(editIndex);
		    }
		  });
		  <#if message??>
			  layer.msg('${message}', {icon: 5,time: 1500}); 
		  </#if>
		  //监听提交
		  form.on('submit(loginForm)', function(data){
		    $("#submitForm").submit();
		  });
	  });
	//返回刷新
	  if(window.name!="hasLoad"){    
		    location.reload();    
		    window.name = "hasLoad";    
		}else{    
		    window.name="";    
		}    
	</script>
</body>
</html>